import service from '@/utils/request'

// @Tags CusFeedback
// @Summary 创建cusFeedback表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CusFeedback true "创建cusFeedback表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /cusFeedback/createCusFeedback [post]
export const createCusFeedback = (data) => {
  return service({
    url: '/cusFeedback/createCusFeedback',
    method: 'post',
    data
  })
}

// @Tags CusFeedback
// @Summary 删除cusFeedback表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CusFeedback true "删除cusFeedback表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /cusFeedback/deleteCusFeedback [delete]
export const deleteCusFeedback = (params) => {
  return service({
    url: '/cusFeedback/deleteCusFeedback',
    method: 'delete',
    params
  })
}

// @Tags CusFeedback
// @Summary 批量删除cusFeedback表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除cusFeedback表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /cusFeedback/deleteCusFeedback [delete]
export const deleteCusFeedbackByIds = (params) => {
  return service({
    url: '/cusFeedback/deleteCusFeedbackByIds',
    method: 'delete',
    params
  })
}

// @Tags CusFeedback
// @Summary 更新cusFeedback表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CusFeedback true "更新cusFeedback表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /cusFeedback/updateCusFeedback [put]
export const updateCusFeedback = (data) => {
  return service({
    url: '/cusFeedback/updateCusFeedback',
    method: 'put',
    data
  })
}

// @Tags CusFeedback
// @Summary 用id查询cusFeedback表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.CusFeedback true "用id查询cusFeedback表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /cusFeedback/findCusFeedback [get]
export const findCusFeedback = (params) => {
  return service({
    url: '/cusFeedback/findCusFeedback',
    method: 'get',
    params
  })
}

// @Tags CusFeedback
// @Summary 分页获取cusFeedback表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取cusFeedback表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /cusFeedback/getCusFeedbackList [get]
export const getCusFeedbackList = (params) => {
  return service({
    url: '/cusFeedback/getCusFeedbackList',
    method: 'get',
    params
  })
}
